package com.glsc.ngateway.oaflow.constant;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Component
public class FixedIncomeConstant {

    public static final String SEARCH_INTERFACENAME = "MobileGetTaskNodeLstByPageNew";

    public static final String DOTASK_INTERFACENAME = "MobileApproveTaskByNodeId_Batch";

    public static final String LOGON_INTERFACENAME = "MobileLogon";

    public static final String GROUPCODE_INTERFACENAME = "MobileGetTaskNodeGroup";

    public static final String TRIPLIST_INTERFACENAME = "MobileGetAllBusinessUser";

    public final static String REDIS_FIXEDINCOME_KEY = "oaflow:fixedincome:key";


//    public static Map<String, String> accountoaToChineseMap = new HashMap<String, String>();
//
//    static {
//        accountoaToChineseMap.put("tiank", "田凯");
//        accountoaToChineseMap.put("tianch", "田宸赫");
//        accountoaToChineseMap.put("gaols", "高莉莎");
//
//        accountoaToChineseMap.put("oup", "欧鹏");
//        accountoaToChineseMap.put("wangdc", "王德臣");
//    }


//    public static Map<String, String> sysAccountMap = new HashMap<String, String>();
//
//    static {
//        sysAccountMap.put("交易主管", "tiank");
//        sysAccountMap.put("销售主管", "tianch");
//        sysAccountMap.put("部门经理", "gaols");
//
//        sysAccountMap.put("资金部A角", "oup");
//        sysAccountMap.put("资金部投资决策", "wangdc");
//        sysAccountMap.put("资金拆借", "wangdc");
//    }


//    public static Map<String, String> roleToAccontMap = new HashMap<String, String>();
//
//    static {
//        roleToAccontMap.put("交易主管", "tiankai");
//        roleToAccontMap.put("销售主管", "tianchenhe");
//        roleToAccontMap.put("部门经理", "gaolisha");
//
//        roleToAccontMap.put("资金部A角", "oupeng");
//        roleToAccontMap.put("资金部投资决策", "wangdechen");
//        roleToAccontMap.put("资金拆借", "wangdechen");
//    }

//    public static List<String> accountList = new ArrayList<>();
//
//    static {
//        accountList.add("tiankai");
//        accountList.add("tianchenhe");
//        accountList.add("gaolisha");
//        accountList.add("oupeng");
//        accountList.add("wangdechen");
//    }

    //"ActiveRoleName":"交易主管"
//    "OR":"2021-12-16","TY":"买入","ISCCROLE":"False","ActiveStep":"步骤2",
//            "CASHDIRECTION":"0","NID":"2377651","GR":"2377651,ydsp1","ID":"251246","TID":"2377649"


    public static Map<String, String> keyToElementMap = new HashMap<String, String>();

    static {
        keyToElementMap.put("ActiveRoleName", "当前角色");
        keyToElementMap.put("OR", "交易日期");
        keyToElementMap.put("TY", "交易方向");
        // keyToElementMap.put("ISCCROLE", "是否会签角色");
        keyToElementMap.put("ActiveStep", "当前步骤");
        keyToElementMap.put("CASHDIRECTION", "资金流向");
        keyToElementMap.put("NID", "审批节点编号");
        //keyToElementMap.put("GR", "审批角色编号审批用户");
        keyToElementMap.put("ID", "交易编号");
        keyToElementMap.put("TID", "审批编号");
    }

}
